Skip to main content
Version: Upcoming

SyntheticFutureQuote

V8 Message Definiton

Live synthetic future quotes are SpiderRock implied futures quotes derived from roll prices.

METADATA

AttributeValue
Topic2675-market-data-index
MLink TokenClientLive
ProductSRLive
accessTypeSELECT

Table Definition

FieldTypeKeyDefault ValueComment
fkey_atenum - AssetTypePRI'None'ccode expiry
fkey_tsenum - TickerSrcPRI'None'ccode expiry
fkey_tkVARCHAR(12)PRI''ccode expiry
fkey_yrSMALLINT UNSIGNEDPRI0ccode expiry
fkey_mnTINYINT UNSIGNEDPRI0ccode expiry
fkey_dyTINYINT UNSIGNEDPRI0ccode expiry
bidPriceDOUBLE0best implied future bid price adjusted for option expiry
askPriceDOUBLE0best implied future ask price adjusted for option expiry
bidSizeINT0best implied future bid size
askSizeINT0best implied future ask size
bidSourceenum - SyntheticSource'None'
askSourceenum - SyntheticSource'None'
marketStatusenum - MarketStatus'None'composite market status of all dependent markets
netTimestampBIGINT0most recent net timestamp of any market affecting this record

PRIMARY KEY DEFINITION (Unique)

FieldSequence
fkey_tk1
fkey_yr2
fkey_mn3
fkey_dy4
fkey_at5
fkey_ts6

CREATE TABLE EXAMPLE QUERY

CREATE TABLE `SRLive`.`MsgSyntheticFutureQuote` (
`fkey_at` ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') NOT NULL DEFAULT 'None' COMMENT 'ccode + expiry',
`fkey_ts` ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') NOT NULL DEFAULT 'None' COMMENT 'ccode + expiry',
`fkey_tk` VARCHAR(12) NOT NULL DEFAULT '' COMMENT 'ccode + expiry',
`fkey_yr` SMALLINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'ccode + expiry',
`fkey_mn` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'ccode + expiry',
`fkey_dy` TINYINT UNSIGNED NOT NULL DEFAULT 0 COMMENT 'ccode + expiry',
`bidPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'best implied future bid price (adjusted for option expiry)',
`askPrice` DOUBLE NOT NULL DEFAULT 0 COMMENT 'best implied future ask price (adjusted for option expiry)',
`bidSize` INT NOT NULL DEFAULT 0 COMMENT 'best implied future bid size',
`askSize` INT NOT NULL DEFAULT 0 COMMENT 'best implied future ask size',
`bidSource` ENUM('None','Future','FutureRoll','Stock') NOT NULL DEFAULT 'None',
`askSource` ENUM('None','Future','FutureRoll','Stock') NOT NULL DEFAULT 'None',
`marketStatus` ENUM('None','PreOpen','PreCross','Cross','Open','Closed','Halted','AfterHours') NOT NULL DEFAULT 'None' COMMENT 'composite market status of all dependent markets',
`netTimestamp` BIGINT NOT NULL DEFAULT 0 COMMENT 'most recent net timestamp of any market affecting this record',
PRIMARY KEY USING HASH (`fkey_tk`,`fkey_yr`,`fkey_mn`,`fkey_dy`,`fkey_at`,`fkey_ts`)
) ENGINE=SRSE DEFAULT CHARSET=LATIN1 COMMENT='Live synthetic future quotes are SpiderRock implied futures quotes derived from roll prices.';

SELECT TABLE EXAMPLE QUERY

SELECT
`fkey_at`,
`fkey_ts`,
`fkey_tk`,
`fkey_yr`,
`fkey_mn`,
`fkey_dy`,
`bidPrice`,
`askPrice`,
`bidSize`,
`askSize`,
`bidSource`,
`askSource`,
`marketStatus`,
`netTimestamp`
FROM `SRLive`.`MsgSyntheticFutureQuote`
WHERE
/* Replace with a ENUM('None','EQT','IDX','BND','CUR','COM','FUT','SYN','WAR','FLX','MUT','SPD','MM','MF','COIN','TOKEN','ANY') */
`fkey_at` = 'None'
AND
/* Replace with a ENUM('None','SR','NMS','CME','ICE','CFE','CBOT','NYMEX','COMEX','RUT','CIDX','ARCA','NYSE','OTC','NSDQ','MFQS','MIAX','DJI','CUSIP','ISIN','BXE','EUX','ANY','CXE','DXE','NXAM','NXBR','NXLS','NXML','NXOS','NXP','EUREX','CEDX','ICEFE') */
`fkey_ts` = 'None'
AND
/* Replace with a VARCHAR(12) */
`fkey_tk` = 'Example_fkey_tk'
AND
/* Replace with a SMALLINT UNSIGNED */
`fkey_yr` = 123
AND
/* Replace with a TINYINT UNSIGNED */
`fkey_mn` = 1
AND
/* Replace with a TINYINT UNSIGNED */
`fkey_dy` = 1;

Doc Columns Query

SELECT * FROM SRLive.doccolumns WHERE TABLE_NAME='SyntheticFutureQuote' ORDER BY ordinal_position ASC;